#ifndef SPRITE_H_
#define SPRITE_H_

#include "animation.h"
#include "collision.h"


typedef struct
{
	float offsetx,offsety;
	SE_animator *ator;
	SE_box *box;
	int numboxes;
}SE_sprite;


int SE_sprite_checkcollision(SE_sprite *spr1,int num1,SE_sprite *spr2,int num2);

SE_sprite *SE_sprite_init(SE_ani *ani);

void SE_sprite_addbox(SE_sprite *spr,float relx,float rely,float wbox,float hbox);
void SE_sprite_updateboxes(SE_sprite *spr,float x,float y);

void SE_sprite_clean(SE_sprite *spr);

void SE_sprite_drawbox(SE_sprite *spr,float posx,float posy);

void SE_sprite_draw_effects(SE_sprite *spr,float posx,float posy,float posz,float zoomx,float zoomy,float rotx,float roty,float rotz,float r,float g,float b,float alpha);
void SE_sprite_draw(SE_sprite *spr,float posx,float posy,float posz);






#endif
